import { legacy_createStore as createStore, combineReducers, applyMiddleware } from 'redux';
import searchReducer from './search/searchReducer'
import tagReducer from './tag/tagReducer';
import thunk from 'redux-thunk'
import logger from 'redux-logger'
const rootReducer = combineReducers({
	searchReducer,
	tagReducer
})

export type RootState = ReturnType<typeof rootReducer>

const store = createStore(rootReducer, applyMiddleware(thunk, logger))

export default store